var province = require('./province');
var city = require('./city');

var _ = require('underscore');

var auto = require('../auto');
var start, end;

var provinceNames = Object.keys(province)

_.map(province, (val, key) => {
  console.log(val,city[val])
})

for (var i = 0; i < 50; i++) {
  start = _.random(34);
  end = _.random(33);
  if (start === end) {
    continue;
  }

  var startCity = province[provinceNames[start]];
  var endCity = province[provinceNames[end]];

  if (!city[startCity] || !city[endCity]) {
    continue;
  }

  console.log(
    city[startCity][0],
    city[startCity][1],
    city[endCity][0],
    city[endCity][1],
    provinceNames[start],
    provinceNames[end],
    startCity,
    endCity,
    _.random(1000),
    _.random(200)
  )
}